import request from '@/utils/request'

// 查询学生管理列表
export function listStudentManage(query) {
  return request({
    url: '/teach/studentManage/list',
    method: 'get',
    params: query
  })
}

// 获取班级管理信息
export function getClassManageInfo() {
  return request({
    url: '/teach/classManage/getClassName/name',
    method: 'get',
  })
}

// 查询学生管理详细
export function getStudentManage(id) {
  return request({
    url: '/teach/studentManage/' + id,
    method: 'get'
  })
}

// 新增学生管理
export function addStudentManage(data) {
  return request({
    url: '/teach/studentManage',
    method: 'post',
    data: data
  })
}

// 修改学生管理
export function updateStudentManage(data) {
  return request({
    url: '/teach/studentManage',
    method: 'put',
    data: data
  })
}


// 根据学生id查询跟踪数据
export function getTraces(id) {
  return request({
    url: '/teach/trace/getTraces/list/' + id,
    method: 'get'
  })
}



// 删除学生管理
export function delStudentManage(id) {
  return request({
    url: '/teach/studentManage/' + id,
    method: 'delete'
  })
}

// 修改学生状态
export function updateStudentStatus(data) {
  return request({
    url: '/teach/studentManage/updateStatus',
    method: 'put',
    data: data
  })
}



